package com.qfedu.wfx.manager.pojos;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class Level2Module {
    private String code;
    private String text;
    private String href;
    private List<Level3Module> nodes;
    private Map<String,Boolean> state = new HashMap<>();



    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Map<String, Boolean> getState() {
        return state;
    }

    public void setState(Map<String, Boolean> state) {
        this.state = state;
    }

    public Level2Module() {
    }

    public Level2Module(String text, String href, List<Level3Module> nodes) {
        this.text = text;
        this.href = href;
        this.nodes = nodes;
    }

    @Override
    public String toString() {
        return "Level2Module{" +
                "code='" + code + '\'' +
                ", text='" + text + '\'' +
                ", href='" + href + '\'' +
                ", nodes=" + nodes +
                ", state=" + state +
                '}';
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getHref() {
        return href;
    }

    public void setHref(String href) {
        this.href = href;
    }

    public List<Level3Module> getNodes() {
        return nodes;
    }

    public void setNodes(List<Level3Module> nodes) {
        this.nodes = nodes;
    }
}
